package com.company.project.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@TableName("sys_buy")
public class Buy extends Model<Buy> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("buy_id")
    private String buyId;
    @TableField("buy_name")
    private String buyName;
    @TableField("buy_date")
    private Date buyDate;
    @TableField("buy_number")
    private String buyNumber;
    @TableField("buy_spec")
    private String buySpec;
    @TableField("buy_little")
    private String buyLittle;
    @TableField("buy_pic")
    private String buyPic;
    @TableField("buy_pic_tel")
    private String buyPicTel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBuyId() {
        return buyId;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public String getBuyName() {
        return buyName;
    }

    public void setBuyName(String buyName) {
        this.buyName = buyName;
    }

    public Date getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(Date buyDate) {
        this.buyDate = buyDate;
    }

    public String getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(String buyNumber) {
        this.buyNumber = buyNumber;
    }

    public String getBuySpec() {
        return buySpec;
    }

    public void setBuySpec(String buySpec) {
        this.buySpec = buySpec;
    }

    public String getBuyLittle() {
        return buyLittle;
    }

    public void setBuyLittle(String buyLittle) {
        this.buyLittle = buyLittle;
    }

    public String getBuyPic() {
        return buyPic;
    }

    public void setBuyPic(String buyPic) {
        this.buyPic = buyPic;
    }

    public String getBuyPicTel() {
        return buyPicTel;
    }

    public void setBuyPicTel(String buyPicTel) {
        this.buyPicTel = buyPicTel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Buy{" +
                "id=" + id +
                ", buyId=" + buyId +
                ", buyName=" + buyName +
                ", buyDate=" + buyDate +
                ", buyNumber=" + buyNumber +
                ", buySpec=" + buySpec +
                ", buyLittle=" + buyLittle +
                ", buyPic=" + buyPic +
                ", buyPicTel=" + buyPicTel +
                "}";
    }
}
